package cn.netjava.chapter12.OrderSystem;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;

public class OrderSystem {
	
	private static final String name = "root";
	
	private static final String url = "jdbc:mysql://localhost:3306/Order_System";
	
	private static final String passWord = "123456";
	
	private static Connection con;
	
	private static ResultSet rs;
	
	private static Statement stat;
	
	static{
		try{
			Class.forName("com.mysql.jdbc.Driver");
			
			con = DriverManager.getConnection(url, name, passWord);
		}catch(Exception ep){
			ep.printStackTrace();
		}
	}
	
	
	
	
	
	
	
	

}
